package com.atguigu.demo.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName : DemoData
 * @Author : 骆发茂
 * @Date: 2021/11/14 11:59
 * @Description : 测试easyexcel写操作
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DemoData {
    //设置excel表头名称

    @ExcelProperty(value = "学生编号",index = 0)
    private  Integer sno;
    @ExcelProperty(value = "学生姓名",index = 1)
    private String sname;
}